/*

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/
#import "XBMC-Common.h"

@class XBMCControlApplication;
@class XBMCHttpInterface;
@class MediaItemFactory;

@interface MusicView : UIView {
    
	UITable *m_table;
	UINavigationBar *m_navBar;
	UINavigationBar *m_bottomNavBar;
	UISegmentedControl *m_bottomButtonPanelMusicItem;
	UISegmentedControl *m_bottomButtonPanelPlaylist;
	struct CGRect m_bottomButtonPanelMusicItemRect;
	struct CGRect m_bottomButtonPanelPlaylistRect;
	BOOL m_isBottomBarShown;
	XBMCControlApplication *m_mainApp;
	NSMutableArray *m_CellArray;
	XBMCHttpInterface *m_xbmc;
	struct CGRect m_rect;
	BOOL m_viewIsActive;
	NSString* m_currentFolderName;
	MediaItemFactory* m_mediaItemFactory;
	NSArray* m_currentTableItems;
	//UIProgressHUD* m_progress;
	NSMutableDictionary *m_folderItemCache;
	NSMutableArray *m_folderStack;
}

- (id) initWithApplication: (UIApplication*)app withAppID: (NSString*)appID withFrame: (struct CGRect)rect;
- (UITable*)table;
- (void)activateView;
- (void)deactivateView;


// private methods
-(void)navigateToChildFolder:(NSString*)folder withName:(NSString*)name;
-(void)navigateToFolder:(NSString*)folder;
-(void)navigateToParentFolder;
- (void)clearTable;
-(void)hideBottomNavBar;
-(void)showBottomNavBar;
-(void)showMusicItemButtons;
-(void)showPlaylistButtons;
@end
